Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AccessToken(val accessToken: String, val tokenType: String, val expiresIn: Int?, val refreshToken: String?)
Link copied to clipboard
@Serializable
data class Claim(val name: String, val namespace: String)

Represents a claim available in an OfferedCredential.

Link copied to clipboard
class CredentialIssuerIdentifier(credentialIssuerIdentifier: String)
Link copied to clipboard
@Serializable
data class CredentialOffer(val credentialIssuer: String, val credentials: List<String>, val requestParameters: RequestParameters? = null)
Link copied to clipboard
@Serializable
data class CredentialRequest(var format: CredentialRequestFormat, val proof: CredentialRequestProof, val doctype: String)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class CredentialRequestProof(val proofType: CredentialRequestProofType, val jwt: String)
Link copied to clipboard
@Serializable
data class CredentialResponse(val format: String, val credential: String)
Link copied to clipboard
@Serializable
data class DiscoveredCredentialOffer(val issuer: String, val authorizeEndpoint: String, val tokenEndpoint: String, val credentialsEndpoint: String, val credentials: List<OfferedCredential>, val mdocIacasUri: String, val requestParameters: RequestParameters?)

Represents a discovered credential offer.

Link copied to clipboard
@Serializable
enum GrantType : Enum<GrantType>
Link copied to clipboard
@Serializable
data class Iaca(val certificate: String)
Link copied to clipboard
@Serializable
data class IacaResponse(val iacas: List<Iaca>)
Link copied to clipboard
@Serializable
data class OfferedCredential(val doctype: String, val claims: List<Claim>, val name: String?, scope: String)

Represents an offered credential available for retrieval.

Link copied to clipboard
@Serializable
data class RequestParameters(val loginHint: String?, val prompt: String?)
Link copied to clipboard
@Serializable(with = RetrieveCredentialError.Companion::class)
enum RetrieveCredentialError : Enum<RetrieveCredentialError>

Retrieve credential error

Link copied to clipboard
@Serializable
data class RetrieveCredentialResult(val doctype: String, val credentialId: String?, val error: RetrieveCredentialError?)

Represents a retrieved mobile credential result.

Link copied to clipboard
@Serializable
data class TokenRequest(val grantType: GrantType, val code: String, val codeVerifier: String, val clientId: String, val redirectUri: String)